<?php
/*------------------------------------------------------------------------
# mod_vportfolio_categories - VPortfolio Categories Module
# ------------------------------------------------------------------------
# author    Vsmart Extensions
# copyright Copyright (C) 2010 www.vsmart-extensions.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.vsmart-extensions.com
# Technical Support:  Forum - http://www.vsmart-extensions.com
-------------------------------------------------------------------------*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

?>
<ul class="menu">
		<?php
            for($i=0;$i<count($categories);$i++){
                $category = $categories[$i];
				//var_dump($category); die();
                //$link = JRoute::_('index.php?option=com_vportfolio&task=category&catid='.$category->id.'&Itemid='.$Itemid);
                $link = JRoute::_('index.php?option=com_vportfolio&task=category&catid='.$category->id.'&Itemid=999');
            ?>
                <li class="item<?php echo $category->id; ?>"><a class="mainlevel" href="<?php echo $link;?>"  <?php if($category->id == $categoryId) echo "id='menu_active'"; ?> ><?php echo $category->name; ?></a></li>
            <?php
            }
			?>
</ul>